package com.ww.scala.syntax

import java.util

/**
 * case_class
 */
object lesson05_case_class {

  def main(args: Array[String]): Unit = {
    val dog1 = new Dog("hsq", 18)
    val dog2 = new Dog("hsq", 18)

    println(dog1.equals(dog2))
    println(dog1 == dog2)


  }


}

case class Dog(name: String, age: Int) {}


